home *** CD-ROM | disk | FTP | other *** search
/ Hackers Handbook - Millenium Edition / Hackers Handbook.iso / library / crack99 / cbd4.txt < prev    next >
Encoding:
Text File  |  1999-03-24  |  9.4 KB  |  205 lines

  1.                 CbD's Tutorial #4
  2.                                                      Alternitive to Serial # Locating
  3.             Target : Business Cards 32 v 4.18
  4.                                                      Level: New to Intermediate
  5.  
  6. Motive of Crack:
  7.     Well we all know that sometimes we cant seem to find the right serail number
  8.     when we are cracking a program, So this crack is to help you to better understand
  9.     that there are other ways to register even if you cant find that " GooD " number
  10.     I will show you that you can simply make the program take any number as a 
  11.     "GooD" one. This type of crack can be hard in some cases but for this example
  12.     I have choosen a fairly simple program for us to use. If you have read my other
  13.     Tutorials you should know that I crack in steps to help each of you new crackers
  14.     to follow along and hopefully not get lost :-). 
  15.  
  16. About the Crack:
  17.     This crack will have 3 main Parts to it each of them having there own steps for
  18.     you to follow. I hope i have made it easy for you and if for some reason you 
  19.     have trouble with it please feel free to join us on EFNET in #cracking4Newbies
  20.     and ask for help. Please note that we dont mind helping the newest of the 
  21.     Cracking world to better their skills as this is what we are here for. 
  22.  
  23.  
  24. The Target:             Business Cards 32 v4.18
  25. Get it From:             http://www.midstream.com
  26. Protection Type:    Serial Number Registration with a 30day time limit
  27. Requested by:       None
  28. Tools Needed:       SoftIce, Hiew(or other Hex Editor)
  29.  
  30. The Crack
  31.  
  32. Part #1
  33.     Ok lets get the crack started, so go and get the prorgram from midstream
  34.     and install it. Got it installed yet? well do it....
  35.  
  36. Step 1
  37.     Well let start this crack by looking at our little program, So load Bcards
  38.     and then you will see the nag screen telling us that we are not a registered user
  39.     (Not Yet anyway) and that you have 30 days to try the program. Well click and get rid
  40.     of the nag and then click [HELP] [REGISTER] you will get the little box for you to 
  41.     put in your info. Well put the Name in you want then the company (if you want) and 
  42.     then the serial number. 
  43.  
  44. Step 2
  45.     Now if we wanted to find the "GooD" serial number we would have to use softice
  46.     to find the location that the "GooD" number get compared to ours, But we dont 
  47.     care what the number should be cause we are going to make the program
  48.     take our bogus number ( And Like It ) and then give us a registered user status.
  49.     But for us to do this we have to still use Softice so we can find where the program
  50.     checks for a valid number then make it think any number is a good one
  51.     so lets get in SoftIce and start the work. Do this  Ctrl-D   this put you in SI
  52.     now we need to break when the programs reads our Serial number so
  53.     we will set a BP(BreakPoint) on GetDlgItemTextA (I have already found the right
  54.     function for you) so do this   BPX GETDLGITEMTEXTA    and press enter
  55.     now we have the only break point we need for this crack. So get out of SI with 
  56.     Ctrl-D.
  57.  
  58. Step 3
  59.     Now you should be back in Bcards at the registration screen, so press enter
  60.     and you will land back in SI at the GetDlgItemTextA function that was called
  61.     by our program. Well this is not where we need to be, because our program
  62.     has three different textboxes to read the data from (1) Name (2) company 
  63.     (3) serial number, and the one we want is the serail number one. So 
  64.     lets press F11 to return to the place the function was called then press F5
  65.     and let the program continue to run, we will break again at the GetDlgItemTextA
  66.     function, this is where the program gets our company info, this to is not what we
  67.     want so Press F11 to return and then F5, now we break at the function once more
  68.     so we Press F11 to get to where the function was called from. This is where we
  69.     will start to do the real cracking of the program.
  70.  
  71. Step 4
  72.     Now that we are in the part of the code that will be checking our serial number
  73.     and deciding if we are a (GooD Guy) or a (Bad Cracker) we will need to do some single
  74.     stepping to see what happens here. So Press F10 and watch the lines of code as they
  75.     pass. We will want to stop on the code below.
  76.  
  77. Your addresses may differ but the code it's self should look the same
  78.  
  79. :00412C3A    ADD    ESP,04
  80. :00412C3D    CMP    BX,AX          [STOP HERE]  <---- compares part of our serial # with parts of the good one
  81. :00412C40    JNZ    00412C7E      <---- if all is good then go ahead and if not the jump
  82. :00412C42    LEA    EAX, [EBP-0C]        so this is one of our points we need to make a change to
  83.  
  84.  
  85.     Ok we will need to change the JNZ (Jump if Not Zero) to JZ (Jump if Zero) and in doing this
  86.     if we were to enter a valid serial number the program would not allow it to register as it
  87.     will then think that it is a Bad number. So lets make a note of the the address we 
  88.     will need to change and also you should do a     D xxxx:00412C40 and then write down
  89.     the value from the data window for later use. Or if  you just want to crack your program
  90.     and not make a general crack to distribute you can make the change in SI  like this
  91.  
  92. A xxxx:00412C40          [ENTER]  <----- Press the Enter Key
  93. xxxx:00412C40    JZ      00412C7E        [ENTER]   [ENTER]  <---- Press Enter Twice
  94.     (Note the xxxx is the starting value for the address as you see it on your system mine is 0137)
  95.  
  96.     now this will not modify your program on the disk only what is running in the system memory
  97.     after you close the program the changes you made will be gone, but if you do all the right
  98.     steps  the program will still be registered. 
  99.     
  100. Step 5
  101.     Ok that was one of the 3 changes that will need to be made becasue if you scroll down with the
  102.     Ctrl-downarrow you will see the following code after you locate it Press F10 till you get to the 
  103.     CMP then if you wish you can make your changes.
  104.  
  105. :00412C62    ADD    ESP,04
  106. :00412C65    CMP    SI,AX        [STOP HERE]  <---- compares part of our serial # with parts of the good one
  107. :00412C68    JNZ    00412C7E      <---- Notice that the jump is to the same address as before
  108. :00412C6A    LEA    EAX, [EBP-0C]        so we will need to do the same as we did above
  109.  
  110.     do a D xxxx:00412C68     the write down the value from the data window for this one
  111.     and again if you want to you can make the change from right here in softice
  112.  
  113. A xxxx:00412C68          [ENTER]  <----- Press the Enter Key
  114. xxxx:00412C68    JZ      00412C7E        [ENTER]   [ENTER]  <---- Press Enter Twice
  115.  
  116.     now that is the second change now we have one more then the crack will be done
  117.  
  118. Step 6
  119.     Now F10 just a few lines and you will see this code below
  120.     
  121. :00412C62    ADD    ESP,04
  122. :00412C65    CMP    EAX, [EBP-0098]       [STOP HERE]  
  123. :00412C68    JZ    00412C91          <--- Jump if all the code is good
  124. :00412C6A    LEA    EAX, [EBP-0C]        
  125.         
  126.     Remeber to do a D xxxx:00412C68 and write down the values.
  127.     Now here we will need to change the JZ to a JNZ  and once we have done this we can disable our
  128.     breakpoints and hit F5 or Ctrl-D and let the program continue and as we pop back to the program we
  129.     will see that we are now a registered owner of this program .......
  130.  
  131.  
  132.     Ok we ahve now Cracked this program and if we want to we can make a general crack 
  133.     so everyone can crack there copy. to do this just follow the steps below
  134.  
  135. Part 2 
  136.  
  137. Step 1
  138.     Ok remember the values I told you to write down ?  did you ? well if not i have provided them     below    
  139.  
  140. First one was 
  141.     xxxx:00412C40   75  3C  8D  45  F4  50  E8  59 
  142.                        ^    ^      ^      ^     ^      ^     ^     ^    <--- Values you will need
  143.  
  144. Second one
  145.     xxxx:00412C68   75  14  8D  45  F4  50  E8  31 
  146.                        ^    ^      ^      ^     ^      ^     ^     ^    <--- Values you will need
  147.  
  148. Third one 
  149.     xxxx:00412C7C   75  13  8D  45  F4  50  E8  1D 
  150.                        ^    ^      ^      ^     ^      ^     ^     ^    <--- Values you will need
  151.  
  152.     The following instructions are for users of HIEW only if you are using a different
  153.     Hex editor then you will need to find the commands that do the same procedures
  154.     
  155.     ok Start Hiew by editing the bcards.exe file (Make a backup first)
  156.     then do the following
  157.  
  158.     1) when hiew starts press the F4 key to get Hex view
  159.     2)press F7 to search 
  160.     3) enter the first string  from above(only the ones marked)
  161.     4)press F2 to get the Code view
  162.     5)press F3 to edit the code
  163.     6)press F2 for ASM mode
  164.     7)change the JNZ to a JZ
  165.         (This may show as a JE or a JNE depending on the step you are in 1,2 or 3)
  166.     8)press F9 to update
  167.     9)Press F10 to exit
  168.     
  169.     now do the same for each of the three strings, you will need to restart Hiew each time
  170.     to insure that you are able to get the proper search result
  171.     (Note for the last on make sure you change the JZ to a JNZ)
  172.     after you are done with all three you can then exite Hiew and continue to part 3
  173.  
  174. Part 3
  175.  
  176.     Makeing a Patch with Gpatch
  177.  
  178.     ok remember I told you to make a back up copy of your file before you used HIEW
  179.     well you should name it like this  Bcards32.bak   and the one you edited should be
  180.     Bcards32.exe   (note you should read the Doc that comes with gpatch to full understand
  181.     how to use it) if you want you can make a txt file  named gpatch.txt and put any nfo 
  182.     about your patch you want.   now run gpatch like this   gpatch bcards32.exe
  183.     it will make you a patch and name it patch.com  you can now rename it to whatever you
  184.     like and distribute it .    well thats it for this tut.
  185.  
  186.     I hope this Tutorial has been helpful and showed you another way to crack 
  187.     those serial number protections. Well even if you cant seem to make the crack work
  188.     (Dont see why you couldn't) i have included the crack with the tutorial.
  189.  
  190. Enjoy and  Happy Cracking.........    _CbD_  ME/C4N'97
  191.  
  192.             EFNET      #Cracking4Newbies    stop by and see us sometime....
  193.  
  194.  
  195.     
  196.  
  197.  
  198.  
  199.     
  200.     
  201.  
  202.  
  203.  
  204.  
  205.